Skip to content

fix: request message chunks for reasoning stream#2787

Open
Eilen6316 wants to merge 1 commit intobytedance:mainfrom
Eilen6316:fix-reasoning-stream-mode
Open

fix: request message chunks for reasoning stream#2787
Eilen6316 wants to merge 1 commit intobytedance:mainfrom
Eilen6316:fix-reasoning-stream-mode

Conversation

@Eilen6316
Copy link
Copy Markdown
Contributor

Summary

  • request both messages-tuple and values stream modes for chat runs so reasoning-only chunks can reach the UI incrementally
  • add frontend coverage for reasoning-only AI messages
  • add backend serialization coverage to ensure reasoning_content on AIMessageChunk is preserved

Closes #2785

Tests

  • uv run pytest tests/test_serialization.py -q
  • uv run ruff check tests/test_serialization.py
  • pnpm exec vitest run tests/unit/core/messages/utils.test.ts
  • pnpm exec tsc --noEmit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

想问一下各位用deepseek V4发送对话会不会卡20秒左右才回复

1 participant